import {fetchPost,fetchGet} from "./http"
// 登陆
export function login(data){
    return fetchPost("/Jiebao/user/biz/login.json",data)
}
// 注册
export function register(data){
    return fetchPost("/Jiebao/user/pc/chief/register.json",data)
}
// 发送验证码
export function sendCode(data){
    return fetchGet("/Jiebao/user/sendSms.json",data)
}
// 验证 商家账号是否存在
export function exist(data){
    return fetchPost("/Jiebao/user/chief/exist.json",data)
}
// 供应商列表
export function getSupplierList(data){
    return fetchPost("/Jiebao/biz/client/order/getSupplierList.json",data)
}
// 客户列表
export function getCustomerList(data){
    return fetchPost("/Jiebao/biz/client/order/getCustomerList.json",data)
}
// 获取创建人下拉列表
export function getCreateUserOption(data){
    return fetchPost("/Jiebao/biz/client/order/getCreateUserOption.json",data)
}
// 根据条件查询订单
export function orderListAll(data){
    return fetchPost("/Jiebao/biz/client/order/list.json",data)
}
// 关注我的
export function follow(data){
    return fetchPost("/Jiebao/biz/client/follow/list.json",data)
}
// 个人信息查询
export function findUserInfo(data){
    return fetchPost("/Jiebao/user/findUserInfo.json",data)
}
// 修改手机号
export function updateAccount(data){
    return fetchPost("/Jiebao/user/updateAccount.json",data)
}
// 代发服务状态修改
export function updateInstead(data){
    return fetchPost("/Jiebao/user/updateInstead.json",data)
}
// 删除全部订单
export function deleteAll(data){
    return fetchPost("/Jiebao/biz/client/order/deleteAll.json",data)
}
// 修改密码
export function updatePassword(data){
    return fetchPost("/Jiebao/user/updatePassword.json",data)
}
// 修改用户名
export function updateUsername(data){
    return fetchPost("/Jiebao/user/updateUsername.json",data)
}
// 修改头像
export function updateUserAvatar(data){
    return fetchPost("/Jiebao/user/updateUserAvatar.json",data)
}
// 上传文件
export function upload(data){
    return fetchPost("/Jiebao/user/upload.json",data)
}
// 获取代发客户列表
export function getProxyCustomerList(data){
    return fetchPost("/Jiebao/biz/client/order/getProxyCustomerList.json",data)
}
//获取代发订单列表
export function getProxyOrderList(data){
    return fetchPost("/Jiebao/biz/client/order/getProxyOrderList.json",data)
}
// 根据条件查询订单
export function orderList(data){
    return fetchPost("/Jiebao/biz/client/order/list.json",data)
}
// /批量修改订单状态
export function editBatch(data){
    return fetchPost("/Jiebao/biz/client/order/editBatch.json",data)
}
// 修改备注
export function remakeEdit(data){
    return fetchPost(" /Jiebao/biz/client/order/edit.json",data)
}
// 修改签名
export function updateUserInfo(data){
    return fetchPost("/Jiebao/user/updateUserInfo.json",data)
}
// 续费
export function updateVipCost(data){
    return fetchPost("/Jiebao/user/updateVipCost.json",data)
}
// 获取微信openid
export function getUserInfo(data){
    return fetchPost("/Jiebao/tool/getUserInfo.json",data)
}
// 忘记密码
export function forgetPasswordForCustomer(data){
    return fetchPost("/Jiebao/user/forgetPassword.json",data)
}
export function getConfig(data){
    return fetchPost("/Jiebao/tool/getConfig.json",data)
}
export function updateGet(data){
    return fetchPost("/Jiebao/user/updateGet.json",data)
}
// 获取微信文件
export function getPictureFromWeixin(data){
    return fetchPost("/Jiebao/tool/getPictureFromWeixin.json",data)
}
// pc端支付
export function unifiedorder(data) {
    return fetchPost('/Jiebao/pay/unifiedorder.json', data)
}
// 支付状态轮询 
export function findPayOrder(data) {
    return fetchPost('/Jiebao/pay/findPayOrder.json', data)
}
// 历史续费 /Jiebao/pay/getPayHistory.json
export function getPayHistory(data) {
    return fetchPost('/Jiebao/pay/getPayHistory.json', data)
}